import { useDroppable } from '@dnd-kit/core'

/** 可落下容器组件 */
const Droppable = props => {
  const { setNodeRef } = useDroppable({
    id: props.id,
  })

  return (
    <div ref={setNodeRef} className={props.className}>
      {props.children}
    </div>
  )
}
export default Droppable
